﻿if(!CityUtil){
	var CityUtil={};
}

CityUtil.cityMap={
    "AAT": { name:"阿勒泰", pinyin:"ALETAI", abbr:"ALT", airport:"阿勒泰机场" },
	"ACX": { name:"兴义", pinyin:"XINGYI", abbr:"XY", airport:"贵阳兴义机场" },
	"AEB": { name:"百色", pinyin:"BAISE", abbr:"BS", airport:"广西百色（田阳）机场" },
	"AKA": { name:"安康", pinyin:"ANKANG", abbr:"AK", airport:"安康机场" },
	"AKU": { name:"阿克苏", pinyin:"AKESU", abbr:"AKS", airport:"阿克苏机场" },
	"AOG": { name:"鞍山", pinyin:"ANSHAN", abbr:"AS", airport:"鞍山机场" },
	"AQG": { name:"安庆", pinyin:"ANQING", abbr:"AQ", airport:"安庆（天柱山）机场" },
	"AVA": { name:"安顺", pinyin:"ANSHUN", abbr:"AS", airport:"贵州安顺黄果树机场" },
	"BAV": { name:"包头", pinyin:"BAOTOU", abbr:"BT", airport:"包头二里半机场" },
	"BFU": { name:"蚌埠", pinyin:"BENGBU", abbr:"BB", airport:"蚌埠机场" },
	"BHY": { name:"北海", pinyin:"BEIHAI", abbr:"BH", airport:"北海福城机场" },
	"BPX": { name:"昌都", pinyin:"CHAMDO", abbr:"CD", airport:"西藏昌都邦达机场" },
	"BSD": { name:"保山", pinyin:"BAOSHAN", abbr:"BS", airport:"保山云瑞机场" },
	"CAN": { name:"广州", pinyin:"GUANGZHOU", abbr:"GZ", airport:"广州白云机场" },
	"CGD": { name:"常德", pinyin:"CHANGDE", abbr:"CD", airport:"常德桃花源（斗姆湖）机场" },
	"CGO": { name:"郑州", pinyin:"ZHENGZHOU", abbr:"ZZ", airport:"郑州新郑机场" },
	"CGQ": { name:"长春", pinyin:"CHANGCHUN", abbr:"CC", airport:"长春龙嘉国际机场" },
	"CHG": { name:"朝阳", pinyin:"CHAOYANG", abbr:"CY", airport:"辽宁朝阳机场" },
	"CHW": { name:"酒泉", pinyin:"JIUQUAN", abbr:"JQ", airport:"酒泉机场" },
	"CIF": { name:"赤峰", pinyin:"CHIFENG", abbr:"CF", airport:"赤峰玉龙机场" },
	"CIH": { name:"长治", pinyin:"CHANGZHI", abbr:"CZ", airport:"长治王村机场" },
	"CKG": { name:"重庆", pinyin:"CHONGQING", abbr:"CQ", airport:"重庆江北机场" },
	"CNI": { name:"长海", pinyin:"CHANGHAI", abbr:"CH", airport:"长海（大长山岛）机场" },
	"CSX": { name:"长沙", pinyin:"CHANGSHA", abbr:"CS", airport:"长沙黄花机场" },
	"CTU": { name:"成都", pinyin:"CHENGDU", abbr:"CD", airport:"成都双流机场" },
	"CYI": { name:"嘉义", pinyin:"JIAYI", abbr:"JYG", airport:"嘉义机场" },
	"CZX": { name:"常州", pinyin:"CHANGZHOU", abbr:"CZ", airport:"常州奔牛机场" },
	"DAT": { name:"大同", pinyin:"DATONG", abbr:"DT", airport:"山西大同机场" },
	"DAX": { name:"达县", pinyin:"DAZHOU", abbr:"DZ", airport:"达县（河市）机场" },
	"DDG": { name:"丹东", pinyin:"DANDONG", abbr:"DD", airport:"丹东浪头机场" },
	"DIG": { name:"迪庆", pinyin:"DIQING", abbr:"DQ", airport:"迪庆香格里拉机场" },
	"DLC": { name:"大连", pinyin:"DALIAN", abbr:"DL", airport:"大连周水子机场" },
	"DLU": { name:"大理", pinyin:"DALI", abbr:"DL", airport:"大理荒草坝机场" },
	"DNH": { name:"敦煌", pinyin:"DUNHUANG", abbr:"DH", airport:"敦煌机场" },
	"DOY": { name:"东营", pinyin:"DONGYING", abbr:"DY", airport:"东营永安机场" },
	"DQA": { name:"大庆", pinyin:"DAQING", abbr:"DQ", airport:"大庆萨尔图机场" },
	"DSN": { name:"鄂尔多斯", pinyin:"EERDUOSI", abbr:"EEDS", airport:"鄂尔多斯伊金霍洛机场" },
	"DYG": { name:"张家界", pinyin:"ZHANGJIAJIE", abbr:"ZJJ", airport:"张家界荷花机场" },	
	"ENH": { name:"恩施", pinyin:"ENSHI", abbr:"ES", airport:"恩施机场" },
	"ENY": { name:"延安", pinyin:"YANAN", abbr:"YA", airport:"延安二十里铺机场" },
	"FOC": { name:"福州", pinyin:"FUZHOU", abbr:"FZ", airport:"福州长乐机场" },	
	"FUG": { name:"阜阳", pinyin:"FUYANG", abbr:"FY", airport:"阜阳西关机场"},
	"FYN": { name:"富蕴", pinyin:"FUYUN", abbr:"FY", airport:"富蕴机场" },
	"FUO": { name:"佛山", pinyin:"FOSHAN", abbr:"FS", airport:"佛山沙堤机场" },
	"GHN": { name:"广汉", pinyin:"GUANGHAN", abbr:"GH", airport:"广汉机场" },
	"GOQ": { name:"格尔木", pinyin:"GEERMU", abbr:"GEM", airport:"格尔木机场" },
	"HAK": { name:"海口", pinyin:"HAIKOU", abbr:"HK", airport:"海口美兰机场" },
	"HDG": { name:"邯郸", pinyin:"HANDAN", abbr:"HD", airport:"河北邯郸机场机场" },
	"HEK": { name:"黑河", pinyin:"HEIHE", abbr:"HH", airport:"黑河机场" },
	"HET": { name:"呼和浩特", pinyin:"HUHEHAOTE", abbr:"HHHT", airport:"呼和浩特白塔国际机场" },
	"HFE": { name:"合肥", pinyin:"HEFEI", abbr:"HF", airport:"合肥骆岗机场" },
	"HGH": { name:"杭州", pinyin:"HANGZHOU", abbr:"HZ", airport:"杭州萧山机场" },
	"HIA": { name:"淮安", pinyin:"HUAIAN", abbr:"HA", airport:"淮安涟水机场"},
	"HJJ": { name:"怀化", pinyin:"HUAIHUA", abbr:"HH", airport:"怀化芷江机场" },
	"HLD": { name:"海拉尔", pinyin:"HAILAER", abbr:"HLE", airport:"内蒙古海拉尔东山机场" },
	"HLH": { name:"乌兰浩特", pinyin:"WULANHAOTE", abbr:"WLHT", airport:"乌兰浩特机场" },
	"HLN": { name:"花莲", pinyin:"HUALIAN", abbr:"HL", airport:"花莲机场" },
	"HMI": { name:"哈密", pinyin:"HAMI", abbr:"HM", airport:"哈密机场" },
	"HNY": { name:"衡阳", pinyin:"HENGYANG", abbr:"HY", airport:"衡阳东江机场" },
	"HRB": { name:"哈尔滨", pinyin:"HAERBIN", abbr:"HEB", airport:"哈尔滨太平机场" },
	"HSN": { name:"舟山", pinyin:"ZHOUSHAN", abbr:"ZS", airport:"舟山普陀山朱家尖机场" },
	"HTN": { name:"和田", pinyin:"HETIAN", abbr:"HT", airport:"和田机场" },
	"HYN": { name:"台州", pinyin:"TAIZHOU", abbr:"TZ", airport:"台州路桥（原黄岩路桥）机场" },
	"HZG": { name:"汉中", pinyin:"HANZHONG", abbr:"HZ", airport:"汉中西关机场" },
	"HZH": { name:"黎平", pinyin:"LIPING", abbr:"LP", airport:"贵州黎平机场" },
	"INC": { name:"银川", pinyin:"YINCHUAN", abbr:"YC", airport:"银川河东机场" },
	"IQM": { name:"且末", pinyin:"QIEMO", abbr:"QM", airport:"且末机场" },
	"IQN": { name:"庆阳", pinyin:"QINGYANG", abbr:"QY", airport:"庆阳机场" },
	"JDZ": { name:"景德镇", pinyin:"JINGDEZHEN", abbr:"JDZ", airport:"景德镇罗家机场" },
	"JGN": { name:"嘉峪关", pinyin:"JIAYUGUAN", abbr:"JYG", airport:"嘉峪关机场" },
	"JHG": { name:"景洪", pinyin:"JINGHONG", abbr:"JH", airport:"景洪（西双版纳）机场" },
	"JIL": { name:"吉林", pinyin:"JILIN", abbr:"JL", airport:"吉林二台子机场" },
	"JIU": { name:"九江", pinyin:"JIUJIANG", abbr:"JJ", airport:"九江庐山机场" },
	"JJN": { name:"晋江", pinyin:"JINJIANG", abbr:"JJ", airport:"泉州晋江机场" },
	"JMU": { name:"佳木斯", pinyin:"JIAMUSI", abbr:"JMS", airport:"佳木斯机场" },
	"JNG": { name:"济宁", pinyin:"JINING", abbr:"JN", airport:"济宁机场" },
	"JNZ": { name:"锦州", pinyin:"JINZHOU", abbr:"JZ", airport:"锦州小岭子机场" },
	"JUZ": { name:"衢州", pinyin:"QUZHOU", abbr:"QZ", airport:"衢州机场" },
	"JZH": { name:"九寨沟", pinyin:"JIUZHAIGOU", abbr:"JZG", airport:"九寨沟黄龙（九黄）机场" },
	"KCA": { name:"库车", pinyin:"KUCHE", abbr:"KC", airport:"库车机场" },
	"KGT": { name:"康定", pinyin:"KANGDING", abbr:"KD", airport:"康定机场" },
	"KHG": { name:"喀什", pinyin:"KASHI", abbr:"KS", airport:"喀什机场" },
	"KHH": { name:"高雄", pinyin:"GAOXIONG", abbr:"GX", airport:"高雄机场" },
	"KHN": { name:"南昌", pinyin:"NANCHANG", abbr:"NC", airport:"南昌昌北机场" },
	"KJI": { name:"布尔津", pinyin:"BUERJIN", abbr:"BEJ", airport:"新疆喀纳斯机场" },
	"KMG": { name:"昆明", pinyin:"KUNMING", abbr:"KM", airport:"昆明巫家坝机场" },
	"KOW": { name:"赣州", pinyin:"GANZHOU", abbr:"GZ", airport:"赣州黄金机场" },
	"KRK": { name:"克拉科夫", pinyin:"KELAKEFU", abbr:"KLKF", airport:"克拉科夫机场" },
	"KRL": { name:"库尔勒", pinyin:"KUERLE", abbr:"KEL", airport:"库尔勒机场" },
	"KRY": { name:"克拉玛依", pinyin:"KELAMAYI", abbr:"KLMY", airport:"克拉玛依机场" },
	"KWE": { name:"贵阳", pinyin:"GUIYANG", abbr:"GY", airport:"贵阳龙洞堡机场" },
	"KWL": { name:"桂林", pinyin:"GUILIN", abbr:"GL", airport:"桂林两江机场" },
	"LDS": { name:"伊春", pinyin:"YICHUN", abbr:"YC", airport:"伊春林都机场"},
	"LHW": { name:"兰州", pinyin:"LANZHOU", abbr:"LZ", airport:"兰州机场" },
	"LJG": { name:"丽江", pinyin:"LIJIANG", abbr:"LJ", airport:"丽江三义机场" },
	"LLB": { name:"荔波", pinyin:"LIBO", abbr:"LB", airport:"荔波机场" },
	"LLF": { name:"永州", pinyin:"YONGZHOU", abbr:"YZ", airport:"永州零陵机场"},
	"LNJ": { name:"临沧", pinyin:"LINCANG", abbr:"LC", airport:"临沧机场" },
	"LUM": { name:"芒市", pinyin:"MANGSHI", abbr:"MS", airport:"芒市机场" },
	"LXA": { name:"拉萨", pinyin:"LASA", abbr:"LS", airport:"拉萨贡嘎机场" },
	"LYA": { name:"洛阳", pinyin:"LUOYANG", abbr:"LY", airport:"洛阳机场" },
	"LYG": { name:"连云港", pinyin:"LIANYUNGANG", abbr:"LYG", airport:"连云港白塔埠机场" },
	"LYI": { name:"临沂", pinyin:"LINYI", abbr:"LY", airport:"临沂沭埠岭机场" },
	"LZH": { name:"柳州", pinyin:"LIUZHOU", abbr:"LZ", airport:"柳州白莲机场" },
	"LZO": { name:"泸州", pinyin:"LUZHOU", abbr:"LZ", airport:"泸州蓝田机场" },
	"LZY": { name:"林芝", pinyin:"LINZHI", abbr:"LZ", airport:"林芝机场" },
	"MDG": { name:"牡丹江", pinyin:"MUDANJIANG", abbr:"MDJ", airport:"牡丹江海浪机场" },
	"MIG": { name:"绵阳", pinyin:"MIANYANG", abbr:"MY", airport:"绵阳南郊机场" },
	"MXZ": { name:"梅县", pinyin:"MEIXIAN", abbr:"MX", airport:"梅县机场" },
	"NAO": { name:"南充", pinyin:"NANCHONG", abbr:"NC", airport:"南充高坪机场" },
	"NAY": { name:"北京南苑", pinyin:"BEIJING", abbr:"BJNW", airport:"北京南苑机场" },
	"NBS": { name:"长白山", pinyin:"CHANGBAISHAN", abbr:"CBS", airport:"长白山机场" },
	"BAS": { name:"长白山", pinyin:"CHANGBAISHAN", abbr:"BAS", airport:"长白山机场" },
	"NDG": { name:"齐齐哈尔", pinyin:"QIQIHAER", abbr:"QQHE", airport:"齐齐哈尔三家子机场" },
	"NGB": { name:"宁波", pinyin:"NINGBO", abbr:"NB", airport:"宁波栎社机场" },
	"NKG": { name:"南京", pinyin:"NANJING", abbr:"NJ", airport:"南京禄口机场" },
	"NLT": { name:"那拉提", pinyin:"NALATI", abbr:"NLT", airport:"那拉提机场" },
	"NNG": { name:"南宁", pinyin:"NANNING", abbr:"NN", airport:"南宁吴圩机场" },
	"NNY": { name:"南阳", pinyin:"NANYANG", abbr:"NY", airport:"南阳姜营机场" },
	"NTG": { name:"南通", pinyin:"NANTONG", abbr:"NT", airport:"南通兴东机场" },
	"NZH": { name:"满洲里", pinyin:"MANZHOULI", abbr:"PZL", airport:"呼伦贝尔满洲里西郊机场" },
	"OHE": { name:"漠河", pinyin:"MOHE", abbr:"MH", airport:"漠河古莲机场" },
	"PEK": { name:"北京", pinyin:"BEIJING", abbr:"BJ", airport:"北京首都机场" },
	"PVG": { name:"上海浦东", pinyin:"SHANGHAI", abbr:"SH", airport:"上海浦东机场" },
	"PZI": { name:"攀枝花", pinyin:"PANZHIHUA", abbr:"PZH", airport:"攀枝花保安营机场" },
	"SHA": { name:"上海虹桥", pinyin:"SHANGHAI", abbr:"SH", airport:"上海虹桥机场" },
	"SHE": { name:"沈阳", pinyin:"SHENYANG", abbr:"SY", airport:"沈阳桃仙机场" },
	"SHP": { name:"秦皇岛", pinyin:"QINHUANGDAO", abbr:"YHD", airport:"秦皇岛山海关机场" },
	"SHS": { name:"沙市", pinyin:"SHASHI", abbr:"SS", airport:"荆州沙市机场" },
	"SJW": { name:"石家庄", pinyin:"SHIJIAZHUANG", abbr:"SJZ", airport:"石家庄正定机场" },
	"SWA": { name:"揭阳", pinyin:"JIEYANG", abbr:"JY", airport:"揭阳潮汕机场" },
	"SYM": { name:"普洱", pinyin:"PUER", abbr:"PE", airport:"普洱（思茅）机场" },
	"SYX": { name:"三亚", pinyin:"SANYA", abbr:"SY", airport:"三亚凤凰机场" },
	"SZV": { name:"苏州", pinyin:"SUZHOU", abbr:"SZ", airport:"苏州机场" },
	"SZX": { name:"深圳", pinyin:"SHENZHEN", abbr:"SZ", airport:"深圳宝安机场" },
	"TAO": { name:"青岛", pinyin:"QINGDAO", abbr:"QD", airport:"青岛流亭机场" },
	"TCG": { name:"塔城", pinyin:"TACHENG", abbr:"TC", airport:"塔城机场" },
	"TCZ": { name:"腾冲", pinyin:"TENGCHONG", abbr:"TC", airport:"腾冲（驼峰）机场" },
	"TEN": { name:"铜仁", pinyin:"TONGREN", abbr:"TR", airport:"铜仁凤凰机场" },
	"TGO": { name:"通辽", pinyin:"TONGLIAO", abbr:"TL", airport:"通辽机场" },
	"THQ": { name:"天水", pinyin:"TIANSHUI", abbr:"TS", airport:"甘肃天水机场" },
	"TNA": { name:"济南", pinyin:"JINAN", abbr:"JN", airport:"济南遥墙机场" },
	"TNH": { name:"通化", pinyin:"TONGHUA", abbr:"TH", airport:"通化机场" },
	"TNN": { name:"台南", pinyin:"TAINAN", abbr:"TN", airport:"台南机场" },
	"TPE": { name:"台北桃园", pinyin:"TAIBEI", abbr:"TB", airport:"桃园（原中正）机场" },
	"TSA": { name:"台北松山", pinyin:"TAIBEI", abbr:"TB", airport:"台北松山机场" },
	"TSN": { name:"天津", pinyin:"TIANJIN", abbr:"TJ", airport:"天津滨海机场" },
	"TVS": { name:"唐山", pinyin:"TANGSHAN", abbr:"TS", airport:"唐山机场" },
	"TTG": { name:"台东", pinyin:"TAIDONG", abbr:"TD", airport:"台东丰年机场" },
	"TXG": { name:"台中", pinyin:"TAIZHONG", abbr:"TZ", airport:"台中机场" },
	"TXN": { name:"黄山", pinyin:"HUANGSHAN", abbr:"HS", airport:"黄山屯溪机场" },
	"TYN": { name:"太原", pinyin:"TAIYUAN", abbr:"TY", airport:"太原武宿机场" },
	"URC": { name:"乌鲁木齐", pinyin:"WULUMUQI", abbr:"WLMQ", airport:"乌鲁木齐地窝堡机场" },
	"UYN": { name:"榆林", pinyin:"YULIN", abbr:"YL", airport:"榆林西沙机场" },
	"WEF": { name:"潍坊", pinyin:"WEIFANG", abbr:"WF", airport:"潍坊机场" },
	"WEH": { name:"威海", pinyin:"WEIHAI", abbr:"WH", airport:"威海文登大水泊机场" },
	"WNH": { name:"文山", pinyin:"WENSHAN", abbr:"WS", airport:"云南文山普者黑机场" },
	"WNZ": { name:"温州", pinyin:"WENZHOU", abbr:"WZ", airport:"温州永强机场" },
	"WUA": { name:"乌海", pinyin:"WUHAI", abbr:"WH", airport:"乌海机场" },
	"WUH": { name:"武汉", pinyin:"WUHAN", abbr:"WH", airport:"武汉天河机场" },
	"WUS": { name:"武夷山", pinyin:"WUYISHAN", abbr:"WYS", airport:"武夷山机场" },
	"WUX": { name:"无锡", pinyin:"WUXI", abbr:"WX", airport:"无锡硕放机场" },
	"WUZ": { name:"梧州", pinyin:"WUZHOU", abbr:"WZ", airport:"广西梧州长洲岛机场" },
	"WXN": { name:"万州", pinyin:"WANZHOU", abbr:"WZ", airport:"重庆万州机场" },
	"XFN": { name:"襄阳", pinyin:"XIANGFan", abbr:"XF", airport:"襄阳刘集机场" },
	"XIC": { name:"西昌", pinyin:"XICHANG", abbr:"XC", airport:"西昌青山机场" },
	"XIL": { name:"锡林浩特", pinyin:"XILINHAOTE", abbr:"XLHT", airport:"锡林浩特机场" },
	"XIY": { name:"西安", pinyin:"XIAN", abbr:"XA", airport:"西安咸阳机场" },//西安特殊处理,传过去的参数必须为XIY,但查询后返回的报文中的机场信息却为XIY
	"XIY": { name:"西安", pinyin:"XIAN", abbr:"XA", airport:"西安咸阳机场" },
	"XMN": { name:"厦门", pinyin:"XIAMEN", abbr:"XM", airport:"厦门高崎机场" },
	"XNN": { name:"西宁", pinyin:"XINING", abbr:"XN", airport:"西宁曹家堡机场" },
	"XUZ": { name:"徐州", pinyin:"XUZHOU", abbr:"XZ", airport:"徐州观音机场" },
	"YBP": { name:"宜宾", pinyin:"YIBIN", abbr:"YB", airport:"宜宾（菜坝）机场" },
	"YCU": { name:"运城", pinyin:"YUNCHENG", abbr:"YC", airport:"运城关公机场" },
	"YIH": { name:"宜昌", pinyin:"YICHANG", abbr:"YC", airport:"宜昌三峡机场" },
	"YIN": { name:"伊宁", pinyin:"YINING", abbr:"YN", airport:"伊宁机场" },
	"YIW": { name:"义乌", pinyin:"YIWU", abbr:"YW", airport:"义乌机场" },
	"YNJ": { name:"延吉", pinyin:"YANJI", abbr:"YJ", airport:"延吉朝阳川机场" },
	"YNT": { name:"烟台", pinyin:"YANTAI", abbr:"YT", airport:"烟台莱山机场" },
	"YNZ": { name:"盐城", pinyin:"YANCHENG", abbr:"YC", airport:"江苏盐城南洋机场" },
	"YUS": { name:"玉树", pinyin:"YUSHU", abbr:"YS", airport:"青海玉树三江源（巴塘）机场" },
	"ZAT": { name:"昭通", pinyin:"ZHAOTONG", abbr:"ZT", airport:"昭通机场" },
	"ZHA": { name:"湛江", pinyin:"ZHANJIANG", abbr:"ZJ", airport:"湛江机场" },
	"ZHY": { name:"中卫", pinyin:"ZHONGWEI", abbr:"ZW", airport:"中卫（香山、沙坡头）机场" },
	"ZUH": { name:"珠海", pinyin:"ZHUHAI", abbr:"ZH", airport:"珠海三灶机场" },
	"ZYI": { name:"遵义", pinyin:"ZUNYI", abbr:"ZY", airport:"遵义机场" },
	"JXA": { name:"鸡西", pinyin:"JIXI", abbr:"JX", airport:"鸡西机场"},
	"GYS": { name:"广元", pinyin:"GUANGYUAN", abbr:"GY", airport:"广元机场"},
	"YIE": { name:"阿尔山", pinyin:"AERSHAN", abbr:"AES", airport:"阿尔山机场"},
	"ERL": { name:"二连浩特", pinyin:"ERLIANHAOTE", abbr:"ELHT", airport:"二连浩特机场"},
	"RLK": { name:"巴彦淖尔", pinyin:"BAYANNAOER", abbr:"BYNE", airport:"巴彦淖尔机场"},
	"YTY": { name:"扬州", pinyin:"YANGZHOU", abbr:"YZ", airport:"扬州机场"},
	"JGS": { name:"井冈山", pinyin:"JINGGANGSHAN", abbr:"JGS", airport:"井冈山机场"},
	"JIQ": { name:"黔江", pinyin:"QIANJINAG", abbr:"QJ", airport:"武陵山机场"},
	"GYU": { name:"固原", pinyin:"GUYUAN", abbr:"GY", airport:"固原六盘山机场"},
	"AEB": { name:"百色", pinyin:"BAISHE", abbr:"BS", airport:"百色机场"},
	"GYU": { name:"固原", pinyin:"GUYUAN", abbr:"GY", airport:"固原六盘山机场"},
	"HZH": { name:"黎平", pinyin:"LIPING", abbr:"LP", airport:"黎平机场"},
	"ZQZ": { name:"张家口", pinyin:"ZHANGJIAKOU", abbr:"ZJK", airport:"河北张家口机场"},
	"LCX": { name:"龙岩", pinyin:"LONGYAN", abbr:"LY", airport:"龙岩冠豸山连城机场"},
	"JGD": { name:"加各达奇", pinyin:"JIAGEDAQI", abbr:"JGDQ", airport:"黑龙江加各达奇机场"},
	"TLQ": { name:"吐鲁番", pinyin:"TULUFAN", abbr:"TLF", airport:"吐鲁番机场"},
	"BPL": { name:"博乐", pinyin:"BOLE", abbr:"BL", airport:"博乐机场"},
	"NGQ": { name:"阿里", pinyin:"ALI", abbr:"AL", airport:"阿里昆莎机场"},
	"RKZ": { name:"日喀则", pinyin:"RIGEZE", abbr:"RGZ", airport:"日喀则机场"},
	"YZY": { name:"张掖", pinyin:"ZHANGYE", abbr:"ZY", airport:"张掖机场"},
	"JIC": { name:"金昌", pinyin:"JINCHANG", abbr:"JC", airport:"金昌机场"},
	"BFJ": { name:"毕节", pinyin:"BIJIE", abbr:"BJ", airport:"毕节飞雄机场"},
	"YIC": { name:"宜春", pinyin:"YICHUN", abbr:"YC", airport:"宜春明月山机场"},
	"AXF": { name:"阿拉善左旗", pinyin:"ALASHANZUOQI", abbr:"ALSZQ", airport:"阿拉善左旗机场"},
	"RHT": { name:"阿拉善右旗", pinyin:"ALASHANYOUQI", abbr:"ALSYQ", airport:"阿拉善右旗机场"},
	"EJN": { name:"额济纳旗", pinyin:"EJINAQI", abbr:"EJNQ", airport:"额济纳旗机场"},
	"JUH": { name:"九华山", pinyin:"JIUHUASHAN", abbr:"JHS", airport:"九华山机场"},
	"GXH": { name:"夏河", pinyin:"XIAHE", abbr:"XH", airport:"夏河机场"},
	"DCY": { name:"稻城", pinyin:"DAOCHENG", abbr:"DC", airport:"稻城亚丁机场"},
	"KJH": { name:"凯里", pinyin:"KAILI", abbr:"KL", airport:"凯里黄平机场"},
	"HPG": { name:"神农架", pinyin:"SHENNONGJIA", abbr:"SLJ", airport:"神农架机场"},
	"FYJ": { name:"抚远", pinyin:"FUYUAN", abbr:"FY", airport:"抚远机场"},
	"KJI": { name:"喀纳斯", pinyin:"GANASI", abbr:"GNS", airport:"喀纳斯机场"},
	"HCJ": { name:"河池", pinyin:"HECHI", abbr:"HC", airport:"河池机场"}

		
};

	CityUtil.getCityNameByCode=function(code){
		var _tmp=CityUtil.cityMap[code];
		if(_tmp && (_tmp.name == '上海虹桥' || _tmp.name == '上海浦东') ){
			return "上海"
		}
		return (!_tmp)?"":_tmp.name;
	}
	
	CityUtil.getCityCodeByName=function(name){
		if(name=="上海"){
			name="上海虹桥";
		}
		
		for(var key in CityUtil.cityMap){
			var _tmp=CityUtil.cityMap[key];
			if(_tmp.name==name){
				return key;
			}
		}
		return "";
	}
	
	CityUtil.getAirportByCode = function(code){
		var _tmp = CityUtil.cityMap[code];
		return _tmp ? _tmp.airport : code;
	}
	
	
	CityUtil.csair_default_guonei_shcs=new Array("北京|PEK|B","上海|SHA|S","广州|CAN|G","深圳|SZX|S","成都|CTU|C","重庆|CKG|C","厦门|XMN|X","昆明|KMG|K","杭州|HGH|H","西安|XIY|X","海口|HAK|H","哈尔滨|HRB|H","长沙|CSX|C","武汉|WUH|W","大连|DLC|D","南京|NKG|N","沈阳|SHE|S","青岛|TAO|Q","三亚|SYX|S","郑州|CGO|Z","天津|TSN|T","长春|CGQ|C","南宁|NNG|N","济南|TNA|T","贵阳|KWE|G","福州|FOC|F","温州|WNZ|W","太原|TYN|T","桂林|KWL|G","宁波|NGB|N","石家庄|SJW|S","拉萨|LXA|L","合肥|HFE|H","安庆|AQG|A");

	CityUtil.csair_default_guonei_qtcs = new Array("阿勒泰|AAT|A","安庆|AQG|A","阿克苏|AKU|A","安康|AKA|A","鞍山|IOB|A",
"保山|BSD|B","包头|BAV|B","北海|BHY|B","北京|PEK|B","长沙|CSX|C","长春|CGQ|C","常德|CGD|C","长治|CIH|C",
"常州|CZX|C","昌都|BPX|C","朝阳|CHG|C","成都|CTU|C","赤峰|CIF|C","重庆|CKG|C","敦煌|DNH|D","大理|DLU|D",
"大连|DLC|D","大同|DAT|D","大庆|DQA|D","丹东|DDG|D","达县|DAX|D",
"芒市|LUM|M","东营|DOY|D","恩施|ENH|E","鄂尔多斯|DSN|E","阜阳|FUG|F","福州|FOC|F","赣州|KOW|G","格尔木|GOQ|G","广元|GYS|G","广州|CAN|G","广汉|GHN|G",
"桂林|KWL|G","贵阳|KWE|G","怀化|HJJ|H","邯郸|HDG|H","哈尔滨|HRB|H","海口|HAK|H","海拉尔|HLD|H","哈密|HMI|H",
"汉中|HZG|H","杭州|HGH|H","合肥|HFE|H","衡阳|HNY|H","和田|HTN|H","呼和浩特|HET|H","黄山|TXN|H","黄岩|HYN|H",
"惠阳|AHE|H","黑河|HEK|H","吉林|JIL|J","济南|TNA|J","济宁|JNG|J","吉安|KNC|J","锦州|JNZ|J","景德镇|JDZ|J",
"荆州、沙市|SHS|J","九江|JIU|J","九寨沟|JZH|J","佳木斯|JMU|J","库尔勒|KRL|K","库车|KCA|K","喀什|KHG|K",
"克拉玛依|KRY|K","昆明|KMG|K","喀纳斯|KJI|K","拉萨|LXA|L","兰州|LHW|L","连云港|LYG|L","梁平|LIA|L","临沂|LYI|L",
"临沧|LNJ|L","柳州|LZH|L","泸州|LZO|L","洛阳|LYA|L","满州里|NZH|M","梅县|MXZ|M","绵阳|MIG|M","牡丹江|MDG|M",
"南京|NKG|N","南昌|KHN|N","南充|NAO|N","南宁|NNG|N","南通|NTG|N","南阳|NNY|N","宁波|NGB|N","那拉提|NLT|N",
"鄂尔多斯|DSN|O","攀枝花|PZI|P","齐齐哈尔|NDG|Q","且末|IQM|Q","秦皇岛|SHP|Q","青岛|TAO|Q","庆阳|IQN|Q","衢州|JUZ|Q",
"晋江|JJN|J","三亚|SYX|S","揭阳|SWA|J","上海|SHA|S","鄯善|SXJ|S","韶关|SHG|S","沈阳|SHE|S",
"深圳|SZX|S","石家庄|SJW|S","思茅|SYM|S","塔城|TCG|T","腾冲|TCZ|T","太原|TYN|T","天津|TSN|T","铜仁|TEN|T",
"万州|WXN|W","潍坊|WEF|W","威海|WEH|W","温州|WNZ|W","武汉|WUH|W","乌鲁木齐|URC|W","武夷山|WUS|W","无锡|WUX|W",
"梧州|WUZ|W","文山|WNH|W","锡林浩特|XIL|X","西安|XIY|X","迪庆|DIG|D","西宁|XNN|X","西双版纳|JHG|X","厦门|XMN|X",
"襄阳|XFN|X","西昌|XIC|X","兴义|ACX|X","徐州|XUZ|X","盐城|YNZ|Y","宜昌|YIH|Y","银川|INC|Y","运城|YCU|Y","永州|LLF|Y",
"延吉|YNJ|Y","烟台|YNT|Y","延安|ENY|Y","宜宾|YBP|Y","义乌|YIW|Y","伊宁|YIN|Y","榆林|UYN|Y","湛江|ZHA|Z","张家界|DYG|Z",
"昭通|ZAT|Z","郑州|CGO|Z","舟山|HSN|Z","珠海|ZUH|Z","遵义|ZYI|Z","丽江|LJG|L","漠河|OHE|M");

	//南航国内航线，更新于2010.12.03
	CityUtil.csair_guonei_lines={
		'AAT':['URC'],
		'AKU':['URC'],
		'AQG':['CAN'],
		'BAV':['CGQ','CTU','KMG','SHE','SJW','SZX'],
		'BHY':['CAN','CSX','KWL','PEK'],
		'BPL':['URC'],
		'BSD':['CAN','KMG'],
		'CAN':['PEK','AQG','BHY','BSD','CGD','CGO','CGQ','CIH','CKG','CSX','CTU','CZX','DAT','DLC','DLU','DQA','DYG','ENH','FOC','FUG','HAK','HDG','HFE','HGH','HJJ','HRB','HYN','HZH','INC','JIU','JMU','JNG','JZH','KHG','KHN','KMG','KOW','KWE','KWL','LHW','LJG','LXA','LYA','LYG','LZH','MDG','MIG','MXZ','NAO','NDG','NGB','NKG','NNG','NNY','NTG','PEK','SHA','SHE','XIY','SJW','SWA','SYX','TAO','TNA','TSN','TXN','TYN','URC','WEH','WNZ','WUH','WUX','XFN','XMN','XNN','XUZ','YIH','YIW','YNJ','YNZ','ZHA'],
		'CGD':['CAN','PEK','SZX'],
		'CGO':['CAN','CKG','CSX','CTU','DLC','DSN','FOC','HAK','HET','HGH','HMI','HRB','JHG','KHN','KMG','KWE','LJG','NNG','NNY','PEK','SHA','SHE','SWA','SYX','SZX','TAO','TSN','URC','WNZ','XMN'],
		'CGQ':['BAV','CAN','CKG','CSX','CTU','DLC','HGH','KMG','NBS','NKG','PEK','SHA','XIY','SYX','SZX','TAO','TNA','TSN','TYN','WUH','XMN','YNJ'],
		'CIH':['CAN','DAT','PEK'],
		'CKG':['CAN','CGO','CGQ','CSX','DIG','DLC','HGH','JHG','KMG','KWE','KWL','LJG','LXA','NKG','NNG','PEK','SHA','SHE','XIY','SWA','SYX','SZX','TCZ','TYN','URC','WNZ','WUH'],
		'CSX':['BHY','CAN','CGO','CGQ','CKG','CTU','DLC','DYG','HAK','HET','HFE','HGH','HJJ','HRB','INC','KMG','KWE','LLF','NKG','NNG','PEK','SHA','SHE','XIY','SJW','SWA','SYX','SZX','TAO','TNA','TSN','TYN','URC','WNZ','YIW','ZHA','ZUH'],
		'CTU':['BAV','CAN','CGO','CGQ','CSX','DLC','DQA','HRB','JZH','KRL','KWE','KWL','NGB','NNG','PEK','SHE','XIY','SWA','SZX','TNA','URC','WUH','YNT','ZUH'],
		'CZX':['CAN','DLC','KMG'],
		'DAT':['CAN','CIH'],
		'DDG':['SHA','SYX','SZX'],
		'DIG':['CKG','PEK'],
		'DLC':['CAN','CGO','CGQ','CKG','CSX','CTU','CZX','DQA','HAK','HFE','HGH','HRB','INC','KMG','KWE','NGB','NKG','PEK','SHA','SHE','XIY','SJW','SYX','SZX','TAO','TNA','TSN','TYN','URC','WNZ','WUH','XMN','YNJ'],
		'DLU':['CAN','KMG'],
		'DNH':['XIY','URC'],
		'DQA':['CAN','CTU','DLC','HGH','HLD','PEK','SHA','XIY','SYX','TAO'],
		'DSN':['CGO','SHA','XIY','SZX'],
		'DYG':['CAN','CSX','PEK','SHE','SZX','TAO'],
		'ENH':['CAN','WUH'],
		'FOC':['CAN','CGO','HGH','SHE','SZX','URC'],
		'FUG':['CAN'],
		'HAK':['CAN','CGO','CSX','DLC','HFE','HGH','HRB','KMG','KWE','NKG','NNG','PEK','SHA','SHE','SZX','TYN','URC','WUH','XMN','ZUH'],
		'HDG':['CAN'],
		'HEK':['HRB','PEK'],
		'HET':['CGO','CSX','KMG','LYA','SHE','SJW','SZX','TSN','URC'],
		'HFE':['CAN','CSX','DLC','HAK','HRB','KWE','SHE','XIY','SYX','SZX','URC','XMN'],
		'HGH':['CAN','CGO','CGQ','CKG','CSX','DLC','DQA','FOC','HAK','HRB','KMG','KWL','LHW','NNG','PEK','SHE','XIY','SYX','SZX','TAO','TYN','URC','WNZ','WUH','XMN'],
		'HJJ':['CAN','CSX','PEK'],
		'HLD':['DQA'],
		'HMI':['CGO','URC'],
		'HRB':['CAN','CGO','CSX','CTU','DLC','HAK','HEK','HFE','HGH','KMG','LDS','NGB','NNG','OHE','PEK','SHA','SHE','XIY','SYX','SZX','TAO','TSN','TYN','WEH','WNZ','WUH','XMN'],
		'HSN':['SZX'],
		'HTN':['URC'],
		'HYN':['CAN'],
		'HZH':['CAN'],
		'INC':['CAN','CSX','DLC','NKG','PEK','XIY','SZX','TSN','URC'],
		'IQM':['KRL','URC'],
		'JHG':['CGO','CKG','KMG'],
		'JIU':['CAN'],
		'JJN':['SZX','WNZ'],
		'JMU':['CAN','SHA'],
		'JNG':['CAN'],
		'JZH':['CAN','CTU'],
		'KCA':['URC'],
		'KHG':['CAN','SHA','URC'],
		'KHN':['CAN','CGO','NKG','NNG','SHE','SWA','SZX','TYN'],
		'KMG':['BAV','BSD','CAN','CGO','CGQ','CKG','CSX','CZX','DLC','DLU','HAK','HET','HGH','HRB','JHG','KWE','KWL','LJG','LLF','NNG','PEK','SHA','SHE','SWA','SYX','SZX','URC','WUH','YIW'],
		'KOW':['CAN','PEK','SZX'],
		'KRL':['CTU','IQM','URC'],
		'KRY':['URC'],
		'KWE':['CAN','CGO','CKG','CSX','CTU','DLC','HAK','HFE','KMG','KWL','NGB','NKG','NNG','PEK','SHA','SHE','XIY','SZX','TAO','TNA','TYN','URC','WNZ','WUH','ZUH'],
		'KWL':['BHY','CAN','CKG','CTU','HGH','KMG','KWE','NKG','NNG','PEK','SHA','SHE','XIY','SWA','SYX','SZX','TAO','TNA','TYN','WUH'],
		'LDS':['HRB','PEK'],
		'LHW':['CAN','HGH','SHE','URC'],
		'LJG':['CAN','CGO','CKG','KMG','SZX'],
		'LLF':['CSX','KMG','PEK','SZX'],
		'LXA':['CAN','CKG','PEK'],
		'LYA':['CAN','HET','SZX'],
		'LYG':['CAN','NGB','SZX','XUZ'],
		'LYI':['SZX','WNZ'],
		'LZH':['CAN'],
		'LZO':['SZX'],
		'MDG':['CAN','SHA'],
		'MIG':['CAN'],
		'MXZ':['CAN'],
		'NAO':['CAN','PEK','SZX'],
		'NBS':['CGQ','PEK','YNJ'],
		'NDG':['CAN','SHA'],
		'NGB':['CAN','CTU','DLC','HRB','KWE','LYG','PEK','SHE','SWA','SYX','SZX','TAO','WUH'],
		'NKG':['CAN','CGQ','CKG','CSX','DLC','HAK','INC','KHN','KWE','KWL','NNG','PEK','SHE','SZX','URC','WUH','XMN'],
		'NNG':['CAN','CGO','CKG','CSX','CTU','HAK','HGH','HRB','KHN','KMG','KWE','KWL','NKG','PEK','SHA','XIY','SWA','SZX','TSN','TYN','URC','WUH'],
		'NNY':['CAN','CGO','PEK','SHA','SZX'],
		'NTG':['CAN'],
		'OHE':['HRB','PEK'],
		'PEK':['BHY','CAN','CGD','CGO','CGQ','CIH','CKG','CSX','CTU','DIG','DLC','DQA','DYG','HAK','HEK','HGH','HJJ','HRB','INC','KMG','KOW','KWE','KWL','LDS','LLF','LXA','NAO','NBS','NGB','NKG','NNG','NNY','OHE','SHA','SHE','XIY','SWA','SYX','SZX','URC','WUH','XMN','XNN','YIW','YNJ','ZHA','ZUH'],
		'SHA':['PEK','CAN','CGO','CGQ','CKG','CSX','DDG','DLC','DQA','DSN','HAK','HRB','JMU','KHG','KMG','KWE','KWL','MDG','NDG','NNG','NNY','PEK','SHE','XIY','SWA','SYX','SZX','TAO','URC','WUH','XNN','YIN','YNJ','YNT','ZUH'],
		'PVG':['PEK','CAN','CGO','CGQ','CKG','CSX','DDG','DLC','DQA','DSN','HAK','HRB','JMU','KHG','KMG','KWE','KWL','MDG','NDG','NNG','NNY','PEK','SHE','XIY','SWA','SYX','SZX','TAO','URC','WUH','XNN','YIN','YNJ','YNT','ZUH'],
		'SHE':['BAV','CAN','CGO','CKG','CSX','CTU','DLC','DYG','FOC','HAK','HET','HFE','HGH','HRB','KHN','KMG','KWE','KWL','LHW','NGB','NKG','PEK','SHA','XIY','SYX','SZX','TAO','TNA','TYN','URC','WNZ','WUH','XMN','YNJ','YNT'],
		'XIY':['CAN','CGQ','CKG','CSX','CTU','DLC','DNH','DQA','DSN','HFE','HGH','HRB','INC','KWE','KWL','NNG','PEK','SHA','SHE','SWA','SYX','SZX','TAO','TNA','TYN','URC','WUH','XNN','ZUH'],
		'SJW':['BAV','CAN','CSX','DLC','HET','SZX','URC'],
		'SWA':['CAN','CGO','CKG','CSX','CTU','KHN','KMG','KWL','NGB','NNG','PEK','SHA','XIY','TAO','TYN','WUH','YIW'],
		'SYX':['CAN','CGO','CGQ','CKG','CSX','DDG','DLC','DQA','HFE','HGH','HRB','KMG','KWL','NGB','PEK','SHA','SHE','XIY','SZX','TNA','TYN','URC','WUH','ZUH'],
		'SZX':['BAV','CGD','CGO','CGQ','CKG','CSX','CTU','DAX','DDG','DLC','DSN','DYG','FOC','HAK','HET','HFE','HGH','HRB','HSN','INC','JJN','KHN','KMG','KOW','KWE','KWL','LJG','LLF','LYA','LYG','LYI','LZO','NAO','NGB','NKG','NNG','NNY','PEK','SHA','SHE','XIY','SJW','SYX','TAO','TNA','TSN','TXN','TYN','URC','WNZ','WUH','WUX','XMN','XNN','YIW'],
		'TAO':['CAN','CGO','CGQ','CSX','DLC','DQA','DYG','HGH','HRB','KWE','KWL','NGB','SHA','SHE','XIY','SWA','SZX','URC','WNZ','WUH','XMN'],
		'TCZ':['CKG'],
		'TNA':['CAN','PEK','SHA','CGO','CGQ','CKG','CSX','DDG','DLC','DQA','DSN','HAK','HRB','JMU','KHG','KMG','KWE','KWL','MDG','NDG','NNG','NNY','SHE','XIY','SWA','SYX','SZX','TAO','URC','WUH','XNN','YIN','YNJ','YNT','ZUH'],
		'TSN':['CAN','CGO','CGQ','CSX','DLC','HET','HRB','INC','NNG','SZX','URC'],
		'TXN':['CAN','SZX'],
		'TYN':['CAN','CGQ','CKG','CSX','DLC','HAK','HGH','HRB','KHN','KWE','KWL','NNG','SHE','XIY','SWA','SYX','SZX','URC','WUH'],
		'URC':['AAT','AKU','BPL','CAN','CGO','CKG','CSX','CTU','DLC','DNH','FOC','HAK','HET','HFE','HGH','HMI','HTN','INC','IQM','KCA','KHG','KMG','KRL','KRY','KWE','LHW','NKG','NNG','PEK','SHA','SHE','XIY','SJW','SYX','SZX','TAO','TNA','TSN','TYN','WNZ','WUH','XMN','XNN','YIN'],
		'WEH':['CAN','HRB'],
		'WNZ':['CAN','CGO','CKG','CSX','DLC','HGH','HRB','JJN','KWE','LYI','SHE','SZX','TAO','URC','WUH','XMN'],
		'WUH':['CAN','CGQ','CKG','CTU','DLC','ENH','HAK','HGH','HRB','KMG','KWE','KWL','NGB','NKG','NNG','PEK','SHA','SHE','XIY','SWA','SYX','SZX','TAO','TNA','TYN','URC','WNZ','XMN','ZUH'],
		'WUX':['CAN','SZX'],
		'XFN':['CAN'],
		'XMN':['CAN','CGO','CGQ','DLC','HAK','HFE','HGH','HRB','NKG','PEK','SHE','SZX','TAO','URC','WNZ','WUH','YIW'],
		'XNN':['CAN','PEK','SHA','XIY','SZX','URC'],
		'XUZ':['CAN','LYG'],
		'YIH':['CAN'],
		'YIN':['SHA','URC'],
		'YIW':['CAN','CSX','KMG','PEK','SWA','SZX','XMN'],
		'YNJ':['CAN','CGQ','DLC','NBS','PEK','SHA','SHE','YNT'],
		'YNT':['CTU','SHA','SHE','YNJ'],
		'YNZ':['CAN','NTG'],
		'ZHA':['CAN','CSX','PEK'],
		'ZUH':['CSX','CTU','HAK','KWE','PEK','SHA','XIY','SYX','WUH']
	};

	
	//定义一个函数来处理航线过滤的情况
CityUtil.csair_getCityListFunction=function(abc,code){
	//被点击的表单id
	var _ret={};
	if(abc=="fc"){
		//此时点击的是国内航线的出发城市
		_ret=CityUtil.csair_getGuoneiFromCityList();
		//_ret=CityUtil.csair_getGuoneiCityListFunction("tc");
	}else if(abc=="fc_fromcity"){
		//此时点击的是国际航线的出发城市
		//
	}else if (abc=="tc"){
		//此时点击的是国际航线的目的城市
		_ret=CityUtil.csair_getGuoneiCityListFunction("fc");
	}else if(abc=="fc_tocity"){
		_ret=CityUtil.csair_getGuojiCityListFunction();
	}
	return _ret;
}

CityUtil.csair_getGuoneiFromCityList=function(){
	var _ret_qb=new Array();
	var hasPutInShanghai=false;
	for(key in CityUtil.csair_guonei_lines){
		if(!CityUtil.cityMap[key]){
			continue;
		}
		var cityname=CityUtil.cityMap[key].name;
		var inputKey=key;
		if(key=="PVG" || key == "SHA"){
			if(!hasPutInShanghai){
				inputKey="SHA";
				cityname="上海";
				hasPutInShanghai=true;
			}else {
				continue;
			}
		}
		if(!CityUtil.cityMap[inputKey]){
			
		}else {
			_ret_qb.push(cityname+"|"+inputKey+"|"+CityUtil.cityMap[inputKey].pinyin.substring(0,1).toUpperCase());
		}
	}
	
	var _ret={};
	_ret.qtcs=_ret_qb;
	_ret.shcs=CityUtil.csair_default_guonei_shcs;
	return _ret;
}


CityUtil.csair_getGuoneiCityListFunction=function(id){
	var _ret={};
	var _fc=document.getElementById(id).value;
	if(_fc=="上海"){
		_fc="上海虹桥";
	}
	
	var _fromcity=CityUtil.getCityCodeByName(_fc).toUpperCase();
	
	
	if(""==_fromcity ){
		_ret.shcs=CityUtil.csair_default_guonei_shcs;
		_ret.qtcs=CityUtil.csair_default_guonei_qtcs;
		return _ret;
	}
	
	var _tmp;
	var _tocityList=new Array();
	var tocity_list=CityUtil.csair_guonei_lines[_fromcity];
	if(!tocity_list){
		tocity_list=[];
	}
	
	var hasPutInShanghai=false;
	for(var index=0;index<tocity_list.length;index++){
			var _tocity=tocity_list[index];
			if(!CityUtil.cityMap[_tocity]){
				continue;
			}
			var cityname=CityUtil.cityMap[_tocity].name;
			if(_tocity=="PVG" || _tocity=="SHA"){
				if(!hasPutInShanghai){
					_tocity="SHA";
					cityname="上海";
					hasPutInShanghai=true;
				}else {
					continue;
				}
			}
			if(!CityUtil.cityMap[_tocity]){
			}else {
				_tocityList.push(cityname+"|"+_tocity+"|"+CityUtil.cityMap[_tocity].pinyin.substring(0,1).toUpperCase());
			}
	}
	
	if(_tocityList.length>0){
	    _ret.qtcs=_tocityList;
	}
	else{
	    _ret.qtcs=new Array("北京|PEK|B","上海|SHA|S","天津|TSN|T","重庆|CKG|C","深圳|SZX|S","太原|TYN|T","呼和浩特|HET|H","沈阳|SHE|S","长春|CGQ|C","哈尔滨|HRB|H","南京|NKG|N","杭州|HGH|H","合肥|HFE|H","福州|FOC|F","南昌|KHN|N","济南|TNA|J","郑州|CGO|Z","武汉|WUH|W","长沙|CSX|C","广州|CAN|G","南宁|NNG|N","海口|HAK|H","成都|CTU|C","贵阳|KWE|G","昆明|KMG|K","西安|SIA|X","兰州|LHW|L","银川|INC|Y","西宁|XNN|X","乌鲁木齐|URC|W","石家庄|SJW|S","拉萨|LXA|L");
	}
	
	if(_ret.qtcs && _ret.qtcs.length<36){
		_ret.shcs=_ret.qtcs;
	}else {
		_ret.shcs=CityUtil.intersection(_tocityList,CityUtil.csair_default_guonei_shcs);
	}
	
	return _ret;
}

CityUtil.intersection=function(list1,list2){
	var _ret=new Array();
	for(var i=0;i<list1.length && _ret.length<list2.length;i++){
			var _tmp=list1[i];
			for(var j=0;j<list2.length;j++){
				if(list2[j]==_tmp){
					_ret.push(list1[i]);
				}
			}
	}
	return _ret;
}

CityUtil.csair_comment_city_list=['SZX','PEK','SHA','CAN','HGH','CKG','XIY','WUH','NKG','SYX'];

CityUtil.csair_getDisplayCityList=function(eleid){
	var _ret={};
	_ret.commend_city=CityUtil.getCityListArray(CityUtil.csair_comment_city_list);
	if(eleid=='fc' ){
		_ret.all_city=CityUtil.getCityListArray(CityUtil.csair_all_city_key);
	}else if(eleid=='tc'){
		var _fc=document.getElementById("fc").value;
		if(_fc=="上海"){
			_fc="上海虹桥";
		}
		var _fromcity=CityUtil.getCityCodeByName(_fc).toUpperCase();
		if(""==_fromcity){
			_ret.all_city=CityUtil.getCityListArray(CityUtil.csair_all_city_key);
		}else {
		    _ret.all_city=CityUtil.getCityListArray(CityUtil.csair_all_city_key);
			//_ret.commend_city=CityUtil.getCityListArray(CityUtil.csair_guonei_lines[_fromcity],10);
			//_ret.all_city=CityUtil.getCityListArray(CityUtil.csair_guonei_lines[_fromcity]);
		}
	}
	
	return _ret;
}

CityUtil.getCityListArray=function(list,size){
	var i=0;
	var _ret=new Array();
	if(!size){
		size=list.length;
	}
	var hasPutInShanghai=false;
	for(i=0;i<list.length && i<size;i++){
		if(!CityUtil.cityMap[list[i]]){
			continue;
		}
		var _tmp_city=CityUtil.cityMap[list[i]];
		var cityname=_tmp_city.name;
		var key=list[i];
		if((list[i]=="SHA" || list[i]=="PVG")){
			if(!hasPutInShanghai){
				cityname="上海";
				key="SHA";
				hasPutInShanghai=true;
			}else {
				continue;
			}
		}
		_ret[_ret.length]=new Array(key,cityname,_tmp_city.pinyin,_tmp_city.abbr);
	}
	return _ret;
}

CityUtil.csair_getAllCitys=function(){
	var _ret=new Array();
	/*
	for(key in CityUtil.csair_default_guonei_qtcs){
		_ret.push(CityUtil.csair_default_guonei_qtcs[key].split("|")[1]);
	}
	*/
	for(key in CityUtil.cityMap){
	    _ret.push(key);
	}
	/*
	for(key in CityUtil.csair_guonei_lines){
		if(CityUtil.cityMap[key]){
			_ret.push(key);
		}
	}
	*/
	return _ret; 
}

//增加航线检查 add by miklchen 2010-09-21
CityUtil.isCanFlight = function(from, to) {
	if(!from || !to) return false;
	
	eval("var canFlightList = CityUtil.csair_guonei_lines." + from + ";");
	if(canFlightList == null) return false;
	
	for(var index = 0; index < canFlightList.length; index++) {
		var city = canFlightList[index];
		if(city == to) {
			return true;
		}
	}
	
	return false;
}

CityUtil.csair_all_city_key=CityUtil.csair_getAllCitys();



//air_index

var guoneiRadio = function(val) {
	if(val == 1) {
		$("guonei_to_font").style.visibility="hidden";
		$("guonei_return_font").style.visibility="hidden";
		$("date2").disabled=true;
		$("date2").style.display="none";
		return;
	}
	else{
		$("guonei_to_font").style.visibility="visible";
		$("guonei_return_font").style.visibility="visible";
		$("date2").disabled=false;
		$("date2").style.display="";
		return;
	}
}
var guoneiRadio2 = function(val) {
	$("date2").disabled=(val==1)?true:false;
}
//国内form提交
var guoneiSubmit = function() {
	var back_radio = getCheckedValue("FlightType");//1:单程 2:往返
	var from = $("from").value;
	var to = $("to").value;
	var date = $("date").value;
	var date2 = $("date2").value;

	//leungma 2010-10-26 读取城市框输入内容，匹配为三字码
	var tmpfrom=CityUtil.getCityCodeByName($("fc").value);
	if(""==tmpfrom){
		alertError("输入的出发城市有误");
		return;
	}
	var tmpto=CityUtil.getCityCodeByName($("tc").value);
	if(""==tmpto){
		alertError("输入的目的城市有误");
		return;
	}

	from=tmpfrom;
	to=tmpto;
	$("from").value=tmpfrom;
	$("to").value=tmpto;
	
	from = (from == "PVG") ? "SHA" : from;
	to = (to == "PVG") ? "SHA" : to;
	
	var obj = {'back_radio':back_radio, 'from':from, 'to':to, 'date':date, 'date2':date2};
	try {
		checkQueryResult(obj);
	} catch (e) {
		alertError(e);
		return;
	}
	var url = "/flight/ShowFareFirst_"+from+"_"+to+"_"+date+"_1_"+date+".htm";
	if($("FlightType2").checked){
	    url = "/flight/ShowFareFirst_"+from+"_"+to+"_"+date+"_2_"+date2+".htm";
	}
	window.location.href=url;
	
	//document.getElementById("guoneiForm").submit();
	
}
